Skip to content

Read the results of a classification model ​

When a training ends, the platform tests the model on images it has not learned from. In this guide you read its scores and its confusion matrix, open the images behind each number and find the ones the model got wrong.

What you will learn

  • What precision, recall and F1 score say about a model
  • How to read a confusion matrix
  • How to see the images the model got wrong

Before you start

You need a classification dataset with a finished training.

1. Open the models of the dataset ​

Open the dataset and click the «Models» tab. It lists every training of the dataset, each with its state and its scores.

Open the models of the dataset

2. Open a model ​

Click the card of a finished model. The «Best» mark shows the model with the highest F1 score of the dataset.

Open a model

3. Read the three scores ​

«Performance metrics» sums the model up in three scores, from 0 to 100 %:

  • «Precision». Of the images the model put in a class, how many really belong to it. It drops when the model raises false alarms.
  • «Recall». Of the images that really belong to a class, how many the model found. It drops when the model misses cases.
  • «F1 Score». One number that combines the two: it is only high when both are.

Read the three scores

4. Choose the images the scores are measured on ​

The selector at the top right of the scores chooses the images they are measured on: «Test», «Validation» or «All», which joins both. None of them were used to teach the model. Choose «All» to see every evaluation image.

Choose the images the scores are measured on

5. Read the confusion matrix ​

Each row of the matrix is the real class of the images and each column, the class the model predicted. The diagonal holds the images the model got right; any other cell is a mistake. Here one «ok» jar was predicted as «broken».

Read the confusion matrix

6. Switch between percentages and counts ​

The matrix shows percentages of each row. Click «Show units» to see how many images each cell holds, and «Show percentage» to go back.

Switch between percentages and counts

7. Open the images behind a cell ​

Click a cell to open its images. The viewer shows the class the model predicted with its confidence, the class it should have predicted, and whether the two agree. «Previous» and «Next» move through the images of the cell.

Open the images behind a cell

8. Browse the evaluation images ​

Close the viewer and click «Evaluation images». Every image of the chosen subset appears with the class the model predicted and its confidence.

Browse the evaluation images

9. Show only the mistakes ​

Set the «Prediction» filter to «Incorrect» to keep only the images the model got wrong. They are the ones worth looking at: a wrong label, an unusual image or a class with too few examples usually explains them.

Show only the mistakes

10. Check how the training went ​

Click «Training details» to see the score of the model after each round of training. A curve that is still climbing at the end suggests that more training time would help.

Check how the training went

Next steps ​

Recorded on Rosepetal release 1.8.15.